export default ({
    namespaced: true,
    state() {
        return {
            userinfo: null,
        }
    },
    mutations: {
        initusreinfoMut(state, info) {
            if (info) {
                state.userinfo = info;
                localStorage.setItem('userinfo', JSON.stringify(info));
            }else{
                state.userinfo=null;
                localStorage.removeItem('userinfo');
            }
        },
    }
})